MAINTAINERCLEANFILES = Makefile.in

INCLUDES = \
-I.

AM_CPPFLAGS = $(GCOV_CFLAGS)

CMAIDHEADERS = \
Cmaid.h \
cmaid_array.h \
cmaid_container.h \
cmaid_container_funcdef.h \
cmaid_cache.h \
cmaid_cache_funcdef.h \
cmaid_hash.h \
cmaid_iter.h \
cmaid_iter_funcdef.h \
cmaid_linked_list.h \
cmaid_list.h \
cmaid_list_funcdef.h \
cmaid_magic.h \
cmaid_map.h \
cmaid_map_funcdef.h \
cmaid_set.h \
cmaid_set_funcdef.h \
cmaid_skip_list.h \
cmaid_stringcache.h \
cmaid_tree.h \
cmaid_value.h \
cmaid_vector.h

installed_headersdir = $(prefix)/include/cmaid
installed_headers_DATA = $(CMAIDHEADERS)

lib_LTLIBRARIES = libcmaid.la

libcmaid_la_SOURCES = \
$(CMAIDHEADERS) \
cmaid_hash.c \
cmaid_iter.c \
cmaid_linked_list.c \
cmaid_magic.c \
cmaid_node.c \
cmaid_private.h \
cmaid_skip_list.c \
cmaid_stringcache.c \
cmaid_tree.c \
cmaid_value.c \
cmaid_vector.c \
rmalloc.h

if CMAID_ENABLE_DEBUG
libcmaid_la_SOURCES += rmalloc.c
endif

libcmaid_la_LIBADD =  $(GCOV_LIBS) @create_shared_lib@
libcmaid_la_LDFLAGS = -version-info 1:0:0

clean-local:
	@rm -f *.gcno
